package com.sijibao.gather.event;

import java.io.Serializable;

public class StockSearchEvent extends Event implements Serializable
{
	private static final long serialVersionUID = 458021054763073421L;
	/**
	 * 用户code
	 */
	private String userCode;
	/**
	 * 搜索起点
	 */
	private String sourceRegionCode;
	/**
	 * 搜索终点
	 */
	private String targetRegionCode;
	/**
	 * 搜索时间
	 */
	private long searchTime;
	/**
	 * 货箱结构字典，多个用逗号隔开<br>
	 * 比如：1,2,3
	 */
	private String vehicleConstructs;
	/**
	 * 货箱车长，多个用逗号隔开<br>
	 * 比如：1,2,3
	 */
	private String vehicleLengths;
	/**
	 * 货物类型，多个用逗号隔开<br>
	 * 比如：1,2,3
	 */
	private String stockKinds;

	/**
	 * 定位经度
	 */
	private double longitude;
	/**
	 * 定位纬度
	 */
	private double latitude;
	/**
	 * 客户端版本号
	 */
	private int clientVersion;
	/**
	 * 手机型号如：小米
	 */
	private String mobileModel;
	/**
	 * 设备号
	 */
	private String deviceCode;

	public StockSearchEvent(String userCode, String sourceRegionCode,
			String targetRegionCode, long searchTime, String vehicleConstructs,
			String vehicleLengths, String stockKinds, double longitude,
			double latitude, int clientVersion, String mobileModel,
			String deviceCode)
	{
		super(StockSearchEvent.class.getName());
		this.userCode = userCode;
		this.sourceRegionCode = sourceRegionCode;
		this.targetRegionCode = targetRegionCode;
		this.searchTime = searchTime;
		this.vehicleConstructs = vehicleConstructs;
		this.vehicleLengths = vehicleLengths;
		this.stockKinds = stockKinds;
		this.longitude = longitude;
		this.latitude = latitude;
		this.clientVersion = clientVersion;
		this.mobileModel = mobileModel;
		this.deviceCode = deviceCode;
	}

	public String getUserCode()
	{
		return userCode;
	}

	public void setUserCode(String userCode)
	{
		this.userCode = userCode;
	}

	public String getSourceRegionCode()
	{
		return sourceRegionCode;
	}

	public void setSourceRegionCode(String sourceRegionCode)
	{
		this.sourceRegionCode = sourceRegionCode;
	}

	public String getTargetRegionCode()
	{
		return targetRegionCode;
	}

	public void setTargetRegionCode(String targetRegionCode)
	{
		this.targetRegionCode = targetRegionCode;
	}

	public long getSearchTime()
	{
		return searchTime;
	}

	public void setSearchTime(long searchTime)
	{
		this.searchTime = searchTime;
	}

	public String getVehicleConstructs()
	{
		return vehicleConstructs;
	}

	public void setVehicleConstructs(String vehicleConstructs)
	{
		this.vehicleConstructs = vehicleConstructs;
	}

	public String getVehicleLengths()
	{
		return vehicleLengths;
	}

	public void setVehicleLengths(String vehicleLengths)
	{
		this.vehicleLengths = vehicleLengths;
	}

	public String getStockKinds()
	{
		return stockKinds;
	}

	public void setStockKinds(String stockKinds)
	{
		this.stockKinds = stockKinds;
	}

	public double getLongitude()
	{
		return longitude;
	}

	public void setLongitude(double longitude)
	{
		this.longitude = longitude;
	}

	public double getLatitude()
	{
		return latitude;
	}

	public void setLatitude(double latitude)
	{
		this.latitude = latitude;
	}

	public int getClientVersion()
	{
		return clientVersion;
	}

	public void setClientVersion(int clientVersion)
	{
		this.clientVersion = clientVersion;
	}

	public String getMobileModel()
	{
		return mobileModel;
	}

	public void setMobileModel(String mobileModel)
	{
		this.mobileModel = mobileModel;
	}

	public String getDeviceCode()
	{
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode)
	{
		this.deviceCode = deviceCode;
	}

	@Override
	public String toString()
	{
		return "StockSearchEvent [userCode=" + userCode + ", sourceRegionCode="
				+ sourceRegionCode + ", targetRegionCode=" + targetRegionCode
				+ ", searchTime=" + searchTime + ", vehicleConstructs="
				+ vehicleConstructs + ", vehicleLengths=" + vehicleLengths
				+ ", stockKinds=" + stockKinds + ", longitude=" + longitude
				+ ", latitude=" + latitude + ", clientVersion=" + clientVersion
				+ ", mobileModel=" + mobileModel + ", deviceCode=" + deviceCode
				+ "]";
	}

}
